<div class="right-main large-4 medium-4 columns">
    <?php dynamic_sidebar('widget_1');?>
    <div class="row popular">
        <h3>週間人気記事</h3>
        <?php 
        $args = array(
                    'post_type' => 'post',
                   'post_status' => 'publish',
                   'order'  => 'DESC',
                   'orderby' => 'meta_value',
                   'meta_key'  => 'post_views_count',
                    'posts_per_page'    => 10
                );
    
        $wp_query = new WP_Query($args);
        ?>    
        <?php if ( $wp_query->have_posts() ) while ( $wp_query->have_posts() ) :$wp_query->the_post(); ?>
        <div class="border-news row">
            <div class="row news">
                <?php if(has_post_thumbnail()) {?>
                <div class="large-3 medium-3 small-4 columns left-news no-padding">
                    <div class="left-image">
                        <a target="_blank" href="<?php echo get_post_meta($post->ID, 'URL', true);?>">
                            <?php the_post_thumbnail('sidebar_thumb');?>
                        </a>
                    </div>
                </div>
                <?php } ?>
                <div class="large-9 medium-9 small-8 columns right-news">
                    <h3><a target="_blank" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
                    <?php the_content(); ?>
                </div>
            </div>
        </div><!-----------end border-news-------------------->
        <?php endwhile; wp_reset_query() ?>
        <div class="read-more row">
            <a href="#">もっと見る  </a>
        </div>
    </div><!--popular-->
</div><!---end right-main -->